package demo1;/**
 * Created with IntelliJ IDEA.
 * Description:
 * https://gitee.com/li--jiaqiang/java-test.git
 * git pull
 * git pull origin master
 * git pull origin master --allow-unrelated-histories
 * User: 86187
 * Date: 2022-05-14
 * Time: 17:30
 */

//class Demo {
//
//    protected int a; //被protected 修饰
//
//    public void func() {
//        System.out.println(a);  //同一个类中访问a
//    }
//}

public class Test {
    protected int a;
    public void func() {
       System.out.println(a);  //同一个类中访问a
   }
}
